<%-- 
    Document   : mantPais
    Created on : 25/06/2009, 06:43:32 PM
    Author     : ADMINISTRADOR
--%>
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="t" uri="http://myfaces.apache.org/tomahawk"%>
<%@taglib prefix="r" uri="http://richfaces.ajax4jsf.org/rich" %>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<script language="javascript" src="../js/funciones.js"></script>
<link href="/colegiatura/Estilos/estilosEsymons.css" rel="stylesheet" type="text/css" />

<f:view>
<h:form id="frmManPais">
    <table width="100%" border="0">
      <tr>
        <td colspan="5" align="left" class="texto3">
            <h:outputLabel value="Mantenimiento de País" styleClass="texto3"/>
        </td>
      </tr>
      <tr><td>
     <a4j:outputPanel ajaxRendered="true">
    <h:messages id="lblMessages" styleClass="messages" infoClass="infoClass" errorClass="errorClass"
                warnClass="warnClass" showDetail="true" errorStyle="color:red;"
                warnStyle="color:green;" infoStyle="color:black;" fatalStyle="color:black"/>
    </a4j:outputPanel>
      </td>
  </tr>
           <tr>
               <td colspan="5" align="left" height="40">
                <h:commandButton  action="#{paisController.nuevo}" value="Nuevo País" styleClass="enlace9" /></td>
          </tr>
          <tr>
            <td colspan="5">
                <r:dataTable value="#{paisController.listaPais}" var="pais" rowClasses="TableImpar,TablePar"
                  rows="10" reRender="dt" id="TableActividad" border="0" headerClass="texto18"  >
                  <r:column width="50" >
                        <f:facet name="header">
                            <h:outputLabel value="Bandera"/>
                        </f:facet>&nbsp;&nbsp;
                        <h:graphicImage value="#{pais.paiBandera}" alt="Bandera"/>
                    </r:column>
                    <r:column width="500" >
                        <f:facet name="header">
                            <h:outputLabel value="País"/>
                        </f:facet>
                        <h:outputLabel value="#{pais.paiDescripcion}" styleClass="texto20"/>
                    </r:column>
                    <r:column width="80">
                        <f:facet name="header"><h:outputLabel value="Opciones"/></f:facet>
                        <h:commandButton image="/imagenColegiatura/editar.png" title="Editar" action="ir_a_editar" styleClass="enlace9"  >
                            <f:setPropertyActionListener target="#{paisController.pais}" value="#{pais}"/>
                        </h:commandButton>&nbsp;
                        <h:commandButton image="/imagenColegiatura/eliminar.png" title="Eliminar" action="#{paisController.remover}" styleClass="enlace9"  >
                            <f:setPropertyActionListener target="#{paisController.pais}" value="#{pais}"/>
                        </h:commandButton>
                    </r:column>
                    <f:facet name="footer">
                           <r:datascroller id="dt" renderIfSinglePage="false"></r:datascroller>
                    </f:facet>
                </r:dataTable>
                </td>
          </tr>
        </table>
   </h:form>
</f:view>